
//
//  WEBViewController.m
//  yonghu
//
//  Created by mac on 2018/5/13.
//  Copyright © 2018年 com.DJS. All rights reserved.
//

#import "WEBViewController.h"

@interface WEBViewController ()

@end

@implementation WEBViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIWebView *webView=[UIWebView new];
    [self.view addSubview:webView];
    [webView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.mas_equalTo(0);
        make.top.mas_equalTo(NAV_HEIGHT);
    }];
    NSURLRequest *request =[NSURLRequest requestWithURL:[NSURL URLWithString:_url]];
    [webView loadRequest:request];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
